use std::collections::HashMap;


pub fn new_count_distinct(input_str: &str) -> usize {
    let mut cache = HashMap::new();
    let mut cur = String::new();
    for c in input_str.chars() {
        if c == ',' && cur.len() > 0 {
            cache.insert(cur, "");
            cur = String::new();
        } else {
            cur.push(c);
        }
    }
    if cur.len() > 0 {
        cache.insert(cur, "v");
    }
    cache.len()
}
